import os

# 项目根目录（自动计算，避免绝对路径）
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
print(PROJECT_ROOT)

# 数据库路径
DATABASE_PATH = os.path.join(PROJECT_ROOT, 'sqlite', 'FaceDatabase1.db')
print(DATABASE_PATH)

# 模型路径
YOLOV8_MODEL_PATH = os.path.join(PROJECT_ROOT,'best.pt')
print(YOLOV8_MODEL_PATH)
YOLOV8_CLS_MODEL_PATH = os.path.join(PROJECT_ROOT,'yolov8s-cls.pt')

# 图片资源路径
LOGO_PATH = os.path.join(PROJECT_ROOT, 'static', 'images', 'logo1.ico')
# print(LOGO_PATH)
BACKGROUND1_IMAGE_PATH = os.path.join(PROJECT_ROOT, 'static', 'images', '生成图像背景图.jpg')
BIG_IMAGE_PATH = os.path.join(PROJECT_ROOT, 'static', 'images', 'face_background_1.jpg')
SMALL_IMAGE_PATH = os.path.join(PROJECT_ROOT, 'static', 'images', 'face_background_2.jpg')